home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio / Ham Radio CD-ROM (Emerald Software) (1995).ISO / misc / 9q920411 / asy.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-06  |  1.2 KB  |  48 lines

  1. #ifndef    _ASY_H
  2. #define    _ASY_H
  3.  
  4. #ifndef    _GLOBAL_H
  5. #include "global.h"
  6. #endif
  7.  
  8. #ifndef    _MBUF_H
  9. #include "mbuf.h"
  10. #endif
  11.  
  12. #ifndef    _IFACE_H
  13. #include "iface.h"
  14. #endif
  15.  
  16. #define    ASY_MAX    5        /* Five asynch ports allowed on the PC */
  17.  
  18. struct asymode {
  19.     char *name;
  20.     char trigchar;
  21.     int (*init) __ARGS((struct iface *,int));
  22.     int (*free) __ARGS((struct iface *));
  23. };
  24. extern struct asymode Asymode[];
  25.  
  26. /* In 8250.c: */
  27. int asy_init __ARGS((int dev,struct iface *ifp,char *arg1,char *arg2,
  28.     int16 bufsize,int trigchar,long speed,int cts,int rlsd));
  29. int32 asy_ioctl __ARGS((struct iface *ifp,int cmd,int set,int32 val));
  30. int asy_speed __ARGS((int dev,long bps));
  31. int asy_send __ARGS((int dev,struct mbuf *bp));
  32. int asy_stop __ARGS((struct iface *ifp));
  33. void asy_write __ARGS((int dev,char *buf,unsigned short cnt));
  34. int get_rlsd_asy __ARGS((int dev, int new_rlsd));
  35. int get_asy __ARGS((int dev));
  36.  
  37. /* In dialer.c: */
  38. void dialer_kick __ARGS((struct asy *asyp));
  39.     
  40. /* In asyvec.asm: */
  41. INTERRUPT asy0vec __ARGS((void));
  42. INTERRUPT asy1vec __ARGS((void));
  43. INTERRUPT asy2vec __ARGS((void));
  44. INTERRUPT asy3vec __ARGS((void));
  45. INTERRUPT asy4vec __ARGS((void));
  46.  
  47. #endif    /* _ASY_H */
  48.